#include <iostream>
#include "windows-mac.h"
#include "block.h"
#include "chunk.h"
#include "game.h"

int main(int argc, char * argv[])
{
	double x = 4,y = 2,z = 3,rx = 0,ry = 0,rz = 0,ux = 0, uy = 0, uz = 0;
	bool keyboard[SDLK_LAST];
	for(int i=0; i < SDLK_LAST; i++)
	{
		keyboard[i] = false;
	}
	
	Model zo("zombie");
	
    SDL_Init(SDL_INIT_VIDEO);
    atexit(SDL_Quit);
    SDL_WM_SetCaption("SDL GL Application", NULL);
    SDL_SetVideoMode(640, 480, 32, SDL_OPENGL);
	
    glMatrixMode( GL_PROJECTION );
    glLoadIdentity();
    gluPerspective(70,(double)640/480,1,1000);
	
    glEnable(GL_DEPTH_TEST);
	glEnable(GL_TEXTURE_2D);
	glEnable(GL_CULL_FACE);
	glCullFace(GL_BACK);
	
	Game::getInstance()->init();
	Chunk chu;
	
	Game::getInstance()->loop(&chu);
	
    return 0;
}